<script setup lang="ts" name="App">
import useSettingsStore from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import GlobalErrorProvider from '@/components/GlobalError/GlobalErrorProvider.vue';

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
    // openModal();
  });
});
</script>

<template>
  <GlobalErrorProvider>
    <router-view />
  </GlobalErrorProvider>
</template>
